package org.tuoren.official.domain.bo;

import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.official.domain.ProductLine;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.List;

/**
 * 产品线/领域业务对象 t_product_line
 *
 * @author wl
 * @date 2024-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ProductLine.class, reverseConvertGenerate = false)
public class ProductLineBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 产品线名称
     */
    @NotBlank(message = "产品线名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 所属科室，多个科室以逗号分隔
     */
    @NotBlank(message = "所属科室，多个科室以逗号分隔不能为空", groups = { AddGroup.class, EditGroup.class })
    private String typeId;
    private List<String> typeList;

    /**
     * banner图片URL
     */
    @NotBlank(message = "banner图片URL不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bannerUrl;
    /**
     * 显示顺序
     */
    private Integer orderNum;
    /**
     * 是否置顶 1是 0否
     */
    private Integer isTop;

}
